| Conditions | 3 |
| Paths | 2 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | function loadJSON(filename, callback) |
||
| 7 | xobj.onreadystatechange = function () { |
||
| 8 | if (xobj.readyState == 4 && xobj.status == "200") { |
||
| 9 | // Required use of an anonymous callback as .open will NOT return a value but simply returns undefined in asynchronous mode |
||
| 10 | callback(xobj.responseText); |
||
| 11 | } |
||
| 12 | }; |
||
| 13 | xobj.send(null); |
||
| 22 | } |